package com.xinzhitong.www.pojo;

import com.xinzhitong.www.enumeration.RoleType;
import lombok.Data;

/**
 * 用户实体类
 *
 * @author 徐鑫
 */
@Data
public class User {

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 性别
     */
    private Boolean sex;

    /**
     * 真实姓名
     */
    private String realname;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 省
     */
    private String province;

    /**
     * 市
     */
    private String city;

    /**
     * 区
     */
    private String area;

    /**
     * 年龄
     */
    private String birthday;

    /**
     * 职业
     */
    private String occupation;

    /**
     * 身份证号
     */
    private String id;

    /**
     * 身份证正面
     */
    private String idCardFront;

    /**
     * 身份证背面
     */
    private String idCardBehind;

    /**
     * 联系方式
     */
    private String contact;

    /**
     * 头像
     */
    private String head;

    /**
     * 角色类型
     */
    private RoleType role;

    /**
     * 上次登录时间
     */
    private String lastLoginTime;

    public User(String username, String password, Boolean sex, String realname, String nickname, String province, String city, String area, String birthday, String occupation, String id, String idCardFront, String idCardBehind, String contact, String head) {
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.realname = realname;
        this.nickname = nickname;
        this.province = province;
        this.city = city;
        this.area = area;
        this.birthday = birthday;
        this.occupation = occupation;
        this.id = id;
        this.idCardFront = idCardFront;
        this.idCardBehind = idCardBehind;
        this.contact = contact;
        this.head = head;
    }

    public User() {

    }

}
